//
//  Custom2ImageAndLabel.m
//  225视听百科
//
//  Created by 张元阳(10) on 14-12-29.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Custom2ImageAndLabel.h"

@implementation Custom2ImageAndLabel
- (void)dealloc
{
    [_imageV release];
    [_label release];
    [_label1 release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height * 3 / 4)];
        [self addSubview:_imageV];
        [_imageV release];
        
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, frame.size.height * 3 / 4, frame.size.width, frame.size.height / 4)];
        _label.numberOfLines = 0;
        [_label setFont:[UIFont systemFontOfSize:14]];
        _label.backgroundColor = [UIColor whiteColor];
        _label.textAlignment = NSTextAlignmentCenter;
        [self addSubview:_label];
        [_label release];
        
        self.label1 = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 40, 20)];
        [_imageV addSubview:_label1];
        [_label1 release];
        
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
